<!--
 * @Author: gyc
 * @Date: 2020-05-23 11:09:19
 * @LastEditTime: 2020-06-06 13:15:06
 * @Description: Nuxt测试版
--> 
<template>
  <Row class="share-box">
    <Col :xs="{span:5}" :lg="{span:3}" class="share-box-left">
      <img src="/img/avatar.jpg" />
      <p>别动我结菜</p>
      <span>初出茅庐</span>
    </Col>
    <Col :xs="{span:19}" :lg="{span:17}" class="share-box-main">
      <h3>[动漫]辉夜姬大小姐想让我告白!</h3>
      <div>分享时间:2020-5-23</div>
      <div class="box-main-msg">简介:发生大大声道大大阿萨德啊打算按时啊打算按时大声道微风无法潍坊港大叔大婶打算打算大大阿萨德啊啊实打实大啊按时</div>
      <div class="share-box-btn">
        <span>顶(0次)</span>
        <Icon type="md-image" size="16" @click="lookImg" />
      </div>
    </Col>
    <Col :xs="{span:0}" :lg="{span:4}" class="share-box-right">1</Col>
    <mo-mask v-if="look" @cancel="noLook"></mo-mask>
  </Row>
</template>

<script>
import mask from "@/components/mask/mask";
export default {
  name: "shareBox",
  data() {
    return {
      look: false
    };
  },
  methods: {
    lookImg() {
      this.look = true;
    },
    noLook() {
      this.look = false;
    }
  },
  components: { "mo-mask": mask }
};
</script>
<style lang="scss" scoped>
.share-box {
  width: 100%;
  padding: 5px;
  min-height: 134px;
  background-color: white;
  // margin-top: 20px;
  border-radius: 4px;
  .share-box-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 124px;
    // border: 1px solid #ccc;
    img {
      width: 60px;
      height: 60px;
    }
    p {
      font-size: 14px;
      height: 24px;
      line-height: 24px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }
    span {
      border: 1px solid green;
      font-size: 12px;
      padding-left: 5px;
      padding-right: 5px;
      color: green;
    }
  }
  .share-box-main {
    display: flex;
    min-height: 42px;
    padding: 5px;
    height: 124px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    h3 {
      height: 20px;
      line-height: 18px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }
    .box-main-msg {
      height: 42px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .share-box-btn {
      display: flex;
      align-items: center;
      height: 21px;
      font-size: 12px;
      color: #aaa;
      span,
      i {
        margin-right: 5px;
        cursor: pointer;
        &:hover {
          color: black;
        }
      }
    }
  }
  .share-box-right {
    height: 100%;
    // display: flex;
    // align-items: center;
    // justify-content: center;
  }
}
</style>